{% extends "admin/base_site.html" %}
{% load i18n admin_static %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}

{% block coltype %}colMS{% endblock %}

{% block bodyclass %}dashboard{% endblock %}

{% block breadcrumbs %}{% endblock %}

{% block content %}
 <div>
       
<img alt="Logo" src="/static/admin/img/account.png">
    </div>
    <div id="content-main">
        <table>
            <tr>
                <th>Person name</th><th>Amount Borrowed</th><th>Rate</th><th>Date Of First Installment</th><th>Duration</th><th>Date of Issue</th><th>
            </tr>
            {% for l in loans %}
                {% if l %}
                    <tr>
                        <td>{{ l.member.first_name }} {{ l.member.last_name }} {{ l.member.other_name }}</td><td>{{ l.amount_borrowed }}</td><td>{{ l.rate }}</td><td>{{ l.date_of_firstInstallment }}</td><td>{{ l.loan_duration }} months</td><td>{{ l.date_of_issue }}</td><td><a href="">EDIT</a> </td><td><a href="">DELETE</a></td>
                    </tr>
                {% endif %}
            {% endfor %}
        </table>

    </div>
{% endblock %}